﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Downloads.aspx.cs" Inherits="HardwareAs.Downloads" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            color: #000000;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Download:</h2>
<p>Please select product type from the list below:</p>
   
    <asp:Panel ID="Panel1" runat="server" GroupingText="Download Locator">

        <asp:ListBox ID="CategoryTitle" runat="server" AutoPostBack="True" 
            onselectedindexchanged="CategoryTitle_SelectedIndexChanged" Height="150px"></asp:ListBox>
             
        <asp:ListBox ID="DownloadTitle" runat="server" Height="150px"></asp:ListBox>
        <asp:Button ID="Search" runat="server" Text="Search"  OnClick="Search_click"/>
        </asp:Panel>
     <p>
         <asp:Label ID="DownTitle" runat="server" ></asp:Label>
     </p>
         <p>
            <asp:Label ID="Description" runat="server" ></asp:Label>
        </p>
        <p>
            <asp:Button ID="Button3" runat="server" Text="DownLoad" Enabled="false" 
                />
    </p>
    <asp:Panel ID="Panel2" runat="server" >
   
        <asp:Panel ID="Panel3" runat="server" CssClass="makesure">
        <h3 class="style1">Download Terms of Agreement</h3>
        <p>1.A part of the download files are uploaded by cutomers.</p>
        <p>2.We don't have responsbility for any problems caused by these files.</p>
        <p>3.Make sure there is at least one Anti-Virus Software is running when you open the download file.</p>
        <br />
        <p>Click OK to Download, or you can click Cancel to return download page.</p> 
            <asp:Button ID="Button1" runat="server" Text="Ok" onclick="Button1_Click"  />
            <asp:Button ID="Button4" runat="server" Text="Cancel" />
        </asp:Panel>
    </asp:Panel>
    
    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
        BackgroundCssClass="modalBack" TargetControlID="Button3" 
        PopupControlID="panel2" CancelControlID="Button4" 
        DropShadow="True">
    </asp:ModalPopupExtender>

    <asp:Panel ID="Panel4" runat="server" GroupingText="Upload your own driver:">
    
    <p>
            Input title:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            &nbsp;&nbsp;            
    </p>
        <p>
            Input description:
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        </p>
    <p>
            Select your driver type:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
        <p>
            &nbsp;<asp:DropDownList ID="CategoryTitle1" runat="server">
            </asp:DropDownList>
            &nbsp;</p>
        <p>
            &nbsp;File:
            <asp:FileUpload ID="GetUrl" runat="server" />
        </p>
        <p>
            <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Upload" />
            <asp:Label ID="Label2" runat="server" Text="Upload successful!" Visible="false"></asp:Label>
        </p>
    </asp:Panel>  
        
   
    
</asp:Content>
